import request from '@/utils/request'
/**
 * 用户登录
 * @param {string} userName 用户名
 * @param {string} password 密码
 * @returns promise
 */
function login(userName, password) {
    return request({
        url: "user/login",
        method: "post",
        data: { userName, password },
    })
}


export { login}
